package text111;

public class Solution7 {
	 public boolean findNumberIn2DArray(int[][] matrix, int target) {
		 		boolean p = false;
		 		for (int i = 0; i < matrix.length; i++) {
					for (int j = 0; j < matrix[i].length; j++) {
						if (matrix[i][j]==target) {
							p = true;
						}
					}
				}
		 		return p;
	    }
}
